<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Customer List</title>
</head>
<body>

	<h2>List</h2>
	
	<table>
		<c:forEach items="${customers}" var="c">
			<tr>
				<td>${c.id}</td>
				<td>${c.cname}</td>
				<td>
					<c:if test="${c.sex}">Male</c:if>
					<c:if test="${!c.sex}">Female</c:if>
				</td>
				<td>${c.sal}</td>
				<td><fmt:formatDate value="${c.birth}" pattern="yyyy-MM-dd"/></td>
			</tr>
		</c:forEach>
	</table>

</body>
</html>